package 笔试;

import java.util.Scanner;

public class 字符串命名转换 {


    public static void main(String args[]) throws Exception{
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        //解析输入用空格将每个单词隔开
        StringBuilder ans = new StringBuilder();
        ans.append(s.charAt(0));
        for(int i = 1;i < s.length();i++){
            if(Character.isUpperCase(s.charAt(i))){
                ans.append(' ').append(s.charAt(i));
            }else if(s.charAt(i) == '_' || s.charAt(i) == '-'){
                ans.append(' ').append(Character.toUpperCase(s.charAt(i+1)));
                i++;
            }else{
                ans.append(s.charAt(i));
            }
        }
        String str1 = ans.toString().replaceAll(" ","");
        String str2 = ans.toString();
        String s1 = str1.substring(0,1).toUpperCase() + str1.substring(1);
        String s2 = str1.substring(0,1).toLowerCase() + str1.substring(1);
        String s3 = str2.toLowerCase().replaceAll(" ","_");
        String s4 = str2.toLowerCase().replaceAll(" ","-");
        System.out.print(s1 + " " + s2 + " " + s3 + " " + s4);
    }
}
